package com.zhxt.system.domain.zhxtvo;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报表一级大指标
 */

@Getter
@Setter
public class ZhxtZItems {
    //指标代码
    private String itemcode;
    //指标名称
    private String itemname;
    //指标数据
    private Double itemrvalue;
    private Double itemmvalue;
    private Double itemyvalue;

    //分组
    private String itemgroup;
    //上级指标
    private String upitemcode;

    //单位
    private String dwtype;
    //颜色
    private String yjstr;
    //排名
    private int pmsort;
    public ZhxtZItems xss() {
        this.itemcode = StringEscapeUtils.escapeHtml4(this.itemcode);
        this.itemname = StringEscapeUtils.escapeHtml4(this.itemname);
        this.itemrvalue = this.itemrvalue;
        this.itemmvalue = this.itemmvalue;
        this.itemyvalue = this.itemyvalue;
        this.itemgroup = StringEscapeUtils.escapeHtml4(this.itemgroup);
        this.upitemcode = StringEscapeUtils.escapeHtml4(this.upitemcode);
        this.dwtype = StringEscapeUtils.escapeHtml4(this.dwtype);
        this.yjstr = StringEscapeUtils.escapeHtml4(this.yjstr);
        this.pmsort = this.pmsort;
        return this;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("itemcode", getItemcode())
                .append("itemname", getItemname())
                .append("itemrvalue", getItemrvalue())
                .append("itemmvalue", getItemmvalue())
                .append("itemyvalue", getItemyvalue())
                .append("itemgroup", getItemgroup())
                .append("upitemcode", getUpitemcode())
                .append("dwtype", getDwtype())
                .append("yjstr", getYjstr())
                .append("pmsort",getPmsort())
                .toString();
    }
}
